package com.zing.service;

import com.zing.dto.ShoppingCartDTO;
import com.zing.entity.ShoppingCart;

import java.util.List;

public interface ShoppingCartService {
    // 购物车添加商品
    void addShoppingCart(ShoppingCartDTO shoppingCartDTO);

    // 购物车减少商品
    void reduceShoppingCart(ShoppingCartDTO shoppingCartDTO);

    // 查询购物车
    List<ShoppingCart> list();

    // 清空购物车
    void cleanByUserId();

}
